<template>
  <div id="login">
    <a-row>
      <a-col class="img-left" :xs="0" :sm="0" :lg="0" :xl="16">
        <loginPublic></loginPublic>
      </a-col>
      <a-col class="body-right" :xs="24" :sm="24" :lg="24" :xl="8">
        <router-view></router-view>
      </a-col>
    </a-row>
  </div>
</template>

<script>
import {defineComponent} from 'vue';
import loginPublic from "./loginVue/loginPublic";
import {message} from "ant-design-vue";

export default defineComponent({
  name: 'login',
  setup() {
  },
  components: {
    loginPublic,
  }

});
</script>

<style lang="less">
#app {
  height: 100%;
}

#login {
  .ant-message-notice:first-child {
    margin-top: 0;
  }
  display: flex;
  .button {
    display: inline-block;
    border-radius: 4px;
    background: #6777EF;
    border: none;
    color: #FFFFFF;
    text-align: center;
    font-size: 28px;
    padding: 20px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
    height: 44px;
  }
  .button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
    font-size: 15px;
    top: -25px;
    color: #fff;
  }
  .button span:after {
    content: '>>';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    color: #fff;
    transition: 0.5s;
  }
  .button:hover{
    background-color: #3C50E1;
  }

  .button:hover span {
    padding-right: 25px;
  }
  .button:hover span:after {
    opacity: 1;
    right: 0;
  }

  //移动端，iPad适配
  @media screen and (min-width: 375px) {
    .main .logo {
      width: 100px;
      height: 100px;
    }
    .main .form {
      width: 70%;
      margin: 0;
    }

    .main .main-top {
      width: 100%;
      margin: 0;
    }
    .main-footer .explain {
      margin-bottom: 5%;
    }
    .main-footer .copy {
      font-size: 12px;
    }
    .main .form .captcha-input {
      width: 15%;
      text-align: center;
      font-size: 20px;
      height: 40px;
    }

    #user,
    #mobile {
      height: 100%;
    }
  }
  @media screen and (min-width: 768px) {
    .main .form {
      width: 55%;
      margin: 0;
    }

    .main .main-top {
      width: 100%;
      margin: 0;
    }

    .main .form .captcha-input {
      width: 12%;
      text-align: center;
      font-size: 20px;
      height: 50px;
    }

    .main-footer .explain {
      font-size: 17px;
      margin-bottom: 7%;
    }

    #binding .main .form .captcha-input {
      width: 12%;
      text-align: center;
      font-size: 20px;
      height: 50px;
    }
  }
  @media screen and (min-width: 1000px) {
    .main .form {
      width: 50%;
    }

    .main .form .captcha-input {
      width: 14%;
      text-align: center;
      font-size: 20px;
    }

    .main-footer .explain {
      margin-bottom: 5%;
    }

    .main-footer {
      width: 100%;
    }

    #login .body-right {
      justify-content: center;
    }

    #user,
    #mobile,
    #modify,
    #Binding {
      height: 100%;
    }
  }
  @media screen and (min-width: 1024px) {

    .main .logo {
      width: 150px;
      height: 150px;
    }

    .main .form {
      width: 50%;
      margin: 0;
    }

    .main .logo {
      width: 150px;
      height: 150px;
    }

    .main .ceremony {
      font-size: 30px;
    }

    .main .appellation {
      font-size: 29px;
    }

    .main-footer .explain {
      font-size: 28px;
    }
    .main-footer .copy{
      font-size: 20px;
    }
    .main-footer .make{
      font-size: 22px;
    }
    .main .main-top {
      width: 100%;
      margin: 0;
    }

    .main-footer p {
      font-size: 15px;
    }

    #user .main .form p {
      font-weight: bold;
      line-height: 30px;
      font-size: 14px;
      margin-bottom: 5px;
    }

    .main .form .captcha-input {
      width: 10%;
      text-align: center;
      font-size: 20px;
      height: 48px;
    }

    .main-footer .explain {
      margin-bottom: 3%;
      font-size: 24px;
    }


    #binding .main .form .captcha-input {
      width: 12%;
      text-align: center;
      font-size: 20px;
      height: 50px;
    }
  }
  @media screen and (min-width: 1200px) {
    .main .logo {
      width: 100px;
      height: 100px;
    }

    .main .form {
      width: 70%;
    }

    .main .appellation {
      font-size: 17px;
    }
    .main-footer p {
      font-size: 15px;
    }
    .main-footer .explain {
      font-size: 18px;
      margin-bottom: 7%;
    }
    .main-footer .copy{
      font-size: 17px;
    }
    .main-footer .make{
      font-size: 17px;
    }
    .main .ceremony {
      font-size: 20px;
    }

    .main .form .captcha-input {
      width: 14%;
      text-align: center;
      font-size: 20px;
    }

    #user,
    #mobile,
    #modify,
    #Binding {
      height: 100%;
    }
  }

  --left: calc(1920px / 48);

  .ant-row {
    height: 100%;
  }

  .img-left {
    height: 100%;
    text-align: left;
    overflow: hidden;
    position: absolute;
  }


  .body-right {
    width: 100%;
    height: 100%;
    position: absolute;
    right: 0;
    display: flex;
    overflow: hidden;
    justify-content: center;
    background-color: #fff;
  }

  .body-right .main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
  }


}

</style>